const path = require('path');
const express = require('express');

let app = express();

//构建
const TermRouter = express.Router();

//引入控制器
const TermController = require(path.join(__dirname,"../controllers/TermController"));

//班级列表页面
TermRouter.get('/termList',TermController.termList);

//班级添加页面
TermRouter.get('/termAdd',TermController.termAdd);

//班级添加post处理
TermRouter.post('/termAdd',TermController.termAddForm);

//班级编辑页面
TermRouter.get('/termEdit',TermController.termEdit);

//班级编辑post处理
TermRouter.post('/termEdit',TermController.termEditForm);

//班级删除
TermRouter.get('/termDelete',TermController.termDelete);

module.exports = TermRouter;